﻿<Window x:Class="DaphneForms.NewGameForm"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:ignore="http://www.ignore.com"
        xmlns:loc="http://schemas.tomer.com/winfx/2006/xaml/presentation"
        mc:Ignorable="d ignore"
        xmlns:service="clr-namespace:MVVMDialogs;assembly=MVVMDialog"       
        service:DialogService.IsRegisteredView="True"       
        Width="400" Height="250" 
        loc:Translate.Uid="wndNewGameForm" Title="{loc:Translate}"
        ResizeMode="NoResize" WindowStartupLocation="CenterOwner" WindowStyle="ToolWindow"
        >

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="35" />
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="200" />
            </Grid.ColumnDefinitions>
            <ListBox Grid.Column="0" Margin="5" ItemsSource="{Binding Path=CheckersTypes}" SelectedItem="{Binding Path=SelectedCheckers, Mode=TwoWay}" />
            <StackPanel Grid.Column="1">
                <GroupBox Margin="5">
                    <StackPanel Margin="3" VerticalAlignment="Center">
                        <RadioButton loc:Translate.Uid="ngfOnePlayer" Content="{loc:Translate}" GroupName="NumPlayers"  IsChecked="{Binding Path=OnePlayerGame, Mode=TwoWay}"/>
                        <RadioButton loc:Translate.Uid="ngfTwoPlayer" Content="{loc:Translate}"  GroupName="NumPlayers" IsChecked="{Binding Path=TwoPlayerGame, Mode=TwoWay}" />
                    </StackPanel>
                </GroupBox>
                <GroupBox Margin="5">
                    <StackPanel Margin="3" VerticalAlignment="Center">
                        <RadioButton loc:Translate.Uid="ngfWhiteTurn" Content="{loc:Translate}" GroupName="Turn" IsChecked="{Binding Path=WhiteTurn, Mode=TwoWay}" />
                        <RadioButton loc:Translate.Uid="ngfBlackTurn" Content="{loc:Translate}"  GroupName="Turn" IsChecked="{Binding Path=BlackTurn, Mode=TwoWay}" />
                    </StackPanel>
                </GroupBox>
                <GroupBox Margin="5">
                    <StackPanel Margin="3" VerticalAlignment="Center">
                        <RadioButton loc:Translate.Uid="ngfClassic" Content="{loc:Translate}" GroupName="Suicidal" IsChecked="{Binding Path=ClassicCheckers, Mode=TwoWay}" />
                        <RadioButton loc:Translate.Uid="ngfSuicidal" Content="{loc:Translate}"  GroupName="Suicidal" IsChecked="{Binding Path=SuicidalCheckers, Mode=TwoWay}" />
                    </StackPanel>
                </GroupBox>
            </StackPanel>
        </Grid>
        <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right" Margin="3">
            <Button loc:Translate.Uid="ngfButtonOK" Content="{loc:Translate}" Width="100" Margin="3" Command="{Binding Path=OKCommand}" />
            <Button loc:Translate.Uid="ngfButtonCancel" Content="{loc:Translate}" Width="100" Margin="3" Command="{Binding Path=CancelCommand}" />            
        </StackPanel>
    </Grid>
</Window>
